package com.liuqi.aiagent.transfer;

/**
 * Web 响应状态,
 *
 * @author liuqi
 * @date 2025/7/3 16:08
 **/
public enum Status {

    /**
     * 成功状态码和消息提示
     */
    SUCCESS(Status.SUCCESS_CODE, "success"),

    /**
     * 失败状态码和消息提示
     */
    FAIL(Status.FAIL_CODE, "fail");

    private static final int SUCCESS_CODE = 0;
    private static final int FAIL_CODE = -1;

    private int code;
    private String msg;

    Status(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int code() {
        return code;
    }

    public String msg() {
        return msg;
    }

}
